package com.small.helper;

import com.small.utils.ClassUtils;

/**
 * 加载所有Helper类，初始化框架，初始化IOC,初始化Controller的mapping映射
 * Created by fangzheng on 2018/1/30.
 */
public class LoaderHelper {

    /**
     * 初始化：加载所有helper类
     */
    public static void init(){
        //待加载的helper类
        Class<?>[] classList = {
                ClassHelper.class,
                BeanHelper.class,
                IocHelper.class,
                ControllerHelper.class
        };
        //遍历，加载这些类
        for (Class<?> aClass : classList) {
            ClassUtils.loadClass(aClass.getName(),true);
        }
    }
}
